]> dgit.raspbian.org Git - gnome-shell.git/commit
extensionPrefs: Avoid awkward indentation in string literal
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 12 Feb 2019 14:16:08 +0000 (15:16 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 2 Jul 2019 12:17:46 +0000 (12:17 +0000)
commit95b80eec01edec6a18e22288095021f8fb9da5c2
treeeb5611e440e6eb2059a8d7bd5c576d482d58486b
parent02c76695e5de86bf3ea72f6ea4024428b7e251f9
extensionPrefs: Avoid awkward indentation in string literal

The current code is carefully avoiding an overly wide line length as
well as adding literal new lines to the string due to indentation. It's
clever and barely legible.

Instead, use one string per line similar to how they appear in the actual
output, and join them together when setting the clipboard text.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/608
js/extensionPrefs/main.js